/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package my12306.http;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.SortedMap;
import java.util.TreeMap;
import my12306.table.KeyValueItem;

/**
 *
 * @author Jack
 */
public class Consts {

    public static final String URL_Login_main = "https://dynamic.12306.cn/otsweb/main.jsp";    //
    public static final String URL_loginAction_init = "https://dynamic.12306.cn/otsweb/loginAction.do?method=init";
    public static final String URL_loginAction_login = "https://dynamic.12306.cn/otsweb/loginAction.do?method=login";
    public static final String URL_loginAction_loginAysnSuggest = "https://dynamic.12306.cn/otsweb/loginAction.do?method=loginAysnSuggest";
    public static final String URL_passCodeAction_rand_login = "https://dynamic.12306.cn/otsweb/passCodeAction.do?rand=sjrand";
    public static final String URL_passCodeAction_rand_order = "https://dynamic.12306.cn/otsweb/passCodeAction.do?rand=randp";
    public static final String URL_QuerySingleAction_init = "https://dynamic.12306.cn/otsweb/order/querySingleAction.do?method=init";
    public static final String URL_QuerySingleAction_queryLeftTicket = "https://dynamic.12306.cn/otsweb/order/querySingleAction.do?method=queryLeftTicket&";
    public static final String URL_QuerySingleAction_submutOrderRequest = "https://dynamic.12306.cn/otsweb/order/querySingleAction.do?method=submutOrderRequest";
    public static final String URL_QuerySingleAction_queryaTrainStopTimeByTrainNo = "https://dynamic.12306.cn/otsweb/order/querySingleAction.do?method=queryaTrainStopTimeByTrainNo&";
    public static final String URL_ConfirmPassengerAction_init = "https://dynamic.12306.cn/otsweb/order/confirmPassengerAction.do?method=init";
    public static final String URL_ConfirmPassengerAction_getpassengerJson = "https://dynamic.12306.cn/otsweb/order/confirmPassengerAction.do?method=getpassengerJson";
    public static final String URL_ConfirmPassengerAction_checkOrderInfo = "https://dynamic.12306.cn/otsweb/order/confirmPassengerAction.do?method=checkOrderInfo&rand=";
    public static final String URL_ConfirmPassengerAction_getQueueCount = "https://dynamic.12306.cn/otsweb/order/confirmPassengerAction.do?method=getQueueCount&";
    public static final String URL_ConfirmPassengerAction_confirmSingleForQueue = "https://dynamic.12306.cn/otsweb/order/confirmPassengerAction.do?method=confirmSingleForQueue";
    public static final String URL_ConfirmPassengerAction_confirmSingleForQueueOrder = "https://dynamic.12306.cn/otsweb/order/confirmPassengerAction.do?method=confirmSingleForQueueOrder";
    public static final String URL_ConfirmPassengerAction_cancel = "https://dynamic.12306.cn/otsweb/order/querySingleAction.do?method=init";
    public static final String URL_ConfirmPassengerAction_payOrder = "https://dynamic.12306.cn/otsweb/order/confirmPassengerAction.do?method=payOrder&orderSequence_no=";
    public static final String URL_MyOrderAction_getOrderWaitTime = "https://dynamic.12306.cn/otsweb/order/myOrderAction.do?method=getOrderWaitTime&tourFlag=dc";
    public static final String URL_MyOrderAction_queryOrderWaitTime = "https://dynamic.12306.cn/otsweb/order/myOrderAction.do?method=queryOrderWaitTime&tourFlag=dc";
    public static final String UserAgent_Default = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)";
    public static final String UserAgentIE6 = "Mozilla/4.0 (compatible; MSIE 6.1; Windows XP; .NET CLR 1.1.4322; .NET CLR 2.0.50727)";
    public static final String UserAgentIE6_XP = "Mozilla/4.0 (compatible; MSIE 6.1; Windows XP)";
    public static final String UserAgentIE7 = "Mozilla/5.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; c .NET CLR 3.0.04506; .NET CLR 3.5.30707; InfoPath.1; en-US)";
    public static final String UserAgentIE7_2 = "Mozilla/5.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 2.0.50727)";
    public static final String UserAgentIE8 = "Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB7.4; InfoPath.2; SV1; .NET CLR 3.3.69573; WOW64; en-US)";
    public static final String UserAgentIE8_2 = "Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 1.0.3705; .NET CLR 1.1.4322)";
    public static final String UserAgentIE9 = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 7.1; Trident/5.0)";
    public static final String UserAgentIE9_2 = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)";
    public static final String UserAgentIE10 = "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)";
    public static final String UserAgentIE10_2 = "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)";
    public static final String UserAgentFirefox12 = "Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20120403211507 Firefox/12.0";
    public static final String UserAgentFirefox16 = "Mozilla/6.0 (Windows NT 6.2; WOW64; rv:16.0.1) Gecko/20121011 Firefox/16.0.1";
    public static final String UserAgentFirefox17 = "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0";
    public static final String UserAgentFirefox20 = "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:20.0) Gecko/20130106 Firefox/20.0";
    public static final String UserAgentFirefox21 = "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:21.0) Gecko/20130112 Firefox/21.0";
    public static final String Accept_Header = "Accept";
    public static final String Accept_Encoding = "Accept-Encoding";
    public static final String Accept_Language = "Accept-Language";
    public static final String Connection_Header = "Connection";
    public static final String Host_Header = "Host";
    public static final String User_Agent = "User-Agent";
    public static final String Referer_Header = "Referer";
    public static final String Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
    public static final String AcceptEncoding = "gzip, deflate";
    public static final String AcceptLanguage = "en-US,en;q=0.5";
    public static final String Connection = "keep-alive";
    public static final String Host = "dynamic.12306.cn";
    public static final String[] columns = new String[]{
        //"序号",
        "车次", "发站",
        "到站", "历时", "发时", "到时", "商务座",
        "特等座", "一等座", "二等座", "高级软卧",
        "软卧", "硬卧", "软座", "硬座", "无座",
        "购票"//"其他"
    };
    public static final SortedMap<String, String> cityName2Code = new TreeMap<String, String>();
    public static final List<KeyValueItem> userAgentList = new ArrayList<KeyValueItem>();

    static {
        userAgentList.add(new KeyValueItem("Default", UserAgent_Default));
        userAgentList.add(new KeyValueItem("Firefox12", UserAgentFirefox12));
        userAgentList.add(new KeyValueItem("Firefox16", UserAgentFirefox16));
        userAgentList.add(new KeyValueItem("Firefox17", UserAgentFirefox17));
        userAgentList.add(new KeyValueItem("Firefox20", UserAgentFirefox20));
        userAgentList.add(new KeyValueItem("Firefox21", UserAgentFirefox21));
        userAgentList.add(new KeyValueItem("IE6", UserAgentIE6));
        userAgentList.add(new KeyValueItem("IE6_XP", UserAgentIE6_XP));
        userAgentList.add(new KeyValueItem("IE7", UserAgentIE7));
        userAgentList.add(new KeyValueItem("IE7_2", UserAgentIE7_2));
        userAgentList.add(new KeyValueItem("IE8", UserAgentIE8));
        userAgentList.add(new KeyValueItem("IE8_2", UserAgentIE8_2));
        userAgentList.add(new KeyValueItem("IE9", UserAgentIE9));
        userAgentList.add(new KeyValueItem("IE9_2", UserAgentIE9_2));
        userAgentList.add(new KeyValueItem("IE10", UserAgentIE10));
        userAgentList.add(new KeyValueItem("IE10_2", UserAgentIE10_2));
    }
}
